<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>授权成功提示</title>
<script type="text/javascript" src="../plug-in/jquery/jquery-1.8.3.js"></script>
<script type="text/javascript">
	var timer = null;

	$(function() {
		timer = setInterval(queryAccountInfo, 5000);

	});
	function queryAccountInfo() {
		$.post("../wxComponentAccountController.do?getUserAcct", {
			authCode:'${authCode}'
		}, function(data) {
			var d = $.parseJSON(data);
			if (d.success) {
				$('#user_table').attr('style', 'display:block;');
				$(".username").value(d.obj.userName);
				$(".password").value(d.obj.password);
				clearInterval(timer);
			}

		});
	}
</script>
</head>
<body>
	<p>授权成功!!!</p>

	<table style="display: none;" id="user_table">
		<tr>
			<td>用户名:</td>
			<td><input type="text" readonly="readonly" name="username"></td>
		</tr>

		<tr>
			<td>密码:</td>
			<td><input type="text" readonly="readonly" name="password"></td>

		</tr>
	</table>

</body>